<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<title>管理</title>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/imt/js/jquery-3.1.0.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/imt/js/system.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/imt/js/common.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/imt/layui/layui.js"></script>
<link rel="stylesheet"
	href="${pageContext.request.contextPath}/imt/layui/css/layui.css"
	media="all">
</head>
<body>
	<!-- layui 后台布局 整体包含 -->
	<div class="layui-layout layui-layout-admin">
	
		<!-- 头部区域（可配合layui已有的水平导航） -->
		<div class="layui-header">
			
			<div class="layui-logo">imt</div>
			
			<!-- 头部区域layui-layout-left居左显示内容 -->
			<!-- <ul class="layui-nav layui-layout-left">
				<li class="layui-nav-item"><a href="javascript:;">注册</a></li>
				<li class="layui-nav-item"><a href="javascript:;">登录</a></li>
			</ul> -->
			
			<!-- 头部区域layui-layout-left居左显示内容 -->
			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="javascript:;"> <img
						src="http://t.cn/RCzsdCq" class="layui-nav-img"> ${userName}
				</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="">基本资料</a>
						</dd>
						<dd>
							<a href="">安全设置</a>
						</dd>
					</dl></li>
				<li class="layui-nav-item"><a href="${pageContext.request.contextPath}/loginOut">退出登录</a></li>
			</ul>
		</div>

		<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<ul class="layui-nav layui-nav-tree" lay-filter="test">
					<li class="layui-nav-item"><a href="javascript:toUserManage()">用户管理</a></li>
					<li class="layui-nav-item"><a href="javascript:toModuleManage()">模块管理</a></li>
				</ul>
			</div>
		</div>

		<!-- 内容主体区域 -->
		<div class="layui-body" id="main">
			<div style="padding: 15px;">内容主体区域</div>
		</div>
		
		<!-- 底部固定区域 -->
		<div class="layui-footer">
			© 2017 lk1234 特别鸣谢：amber7456提供的技术支持
		</div>
	</div>
	
</body>
<script>
	//JavaScript代码区域
	layui.use([ 'element', 'layer' ], function() {
		var $ = layui.jquery;
		var element = layui.element;
		var layer = layui.layer; //独立版的layer无需执行这一句
	});
	layui.use(['form'], function() {
		var	form = layui.form;
	});

	function toUserManage() {
		pageHref("${pageContext.request.contextPath}/toUserPage");
	}

	function toModuleManage() {
		pageHref("${pageContext.request.contextPath}/getModuleList");
	}

</script>
</html>